* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
ul{
    list-style: none;
}
/* 统一组件代码 */
input[type=text] {
    width: 100%;
    flex: 1;
    margin-right: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;

    /* 伪类 :改变边框颜色*/
    &:focus {
        outline: none;
        border-color: #007bff;
    }

    &::placeholder {
        color: #ccc;
    }
}

/* 删除线 */
.line {
    text-decoration: line-through;
  }

button {
    padding: 5px 10px;
    background-color: #f9f6aa;
    color: #1a1919;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.btn-group button{
    background-color: #fdcccc;
    margin: 2px;
}
button:hover {
    background-color: rgb(236, 194, 234);
    /* 悬停时改变背景颜色 */
}

.container {
    width: 400px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff1f2;
    
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1)
}

.container h3 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.container .addtask {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.category{
    display: flex;
    justify-content: space-between;
}
.search {
    margin-bottom: 10px;
    margin-top: 15px;
}

.container .tasklist li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #f8f8f8;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    transition: all 0.2s ease;
    &:hover{
        transform: translate(-5px);
    }
}
.footer{
    color: #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 14px;
}
